import { h,VNode,PropType, defineComponent } from 'vue'
export default defineComponent( {
    props: {
        node: {
            type: Object as PropType<VNode>,
            default:()=>(null)
        },        
        row: {
            type: Object,
            default: ()=>(null)
        }
    },
    setup(props) {
        return() => { 
            if(props.node.props){
                props.node.props.data = props.row
            }
            return h('td', null, props.node)
        }
    }
} )